
package com.amigo.online.common.param.dto.merchant;
/**
<code>GoodsCommentDto.java</code>
<p>

</p>
<p>
	@company Amigo
	@author LuChen
	@time 2018年12月15日 下午5:17:43
	@version 1.0 
	@lastUpdate 无
</p>
*/

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.util.List;

public class GoodsCommentDto {
	
	//评论图片地址
	@Size(max = 3, min = 0)
	private List<String> list;
	
	//评论商品id
	@Digits(integer=20,fraction=0)
	private Long goodsId;
	
	//商家id
	@Digits(integer=20,fraction=0)
	private Long merchantId;
	//评论等级
	@Max(5)
	@Min(1)
	private Integer star;
	
	//评论内容
	@NotBlank
	@Length(min = 0,max = 1000)
	private String content;
	

	public Long getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}

	public List<String> getList() {
		return list;
	}

	public void setList(List<String> list) {
		this.list = list;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}

